package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @title: SearchFeignService
 * @Author syh
 * @Date: 2022/6/24 16:11
 * @Version 1.0
 */

@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 商品上架保存到es中
     *
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/save/product")
    public R productStartUp(@RequestBody List<SkuEsModel> skuEsModels);
}
